package com.example.seckill.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 秒杀成功明细
 * </p>
 *
 * @author hl
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SuccessSeckilled implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 秒杀商品id
     */
    @TableId(value = "seckill_id", type = IdType.UUID)
    private Long seckillId;

    /**
     * 用户手机号
     */
    @TableField("user_phone")
    private Long userPhone;

    /**
     * 状态标识：-1：无效，0：成功，1：已付款，2：已发货
     */
    @TableField("state")
    private Integer state = 0;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Timestamp createTime;


}
